package com.seng.deptservice.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seng.deptservice.entity.TbDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author seng
 * @since 2020-07-26
 */
public interface TbDepartmentMapper extends BaseMapper<TbDepartment> {

    List<TbDepartment> findDeptAndCount();

    IPage<TbDepartment> findStudentPage(Page<TbDepartment> page, @Param(Constants.WRAPPER) QueryWrapper<TbDepartment> wrapper);

    List<TbDepartment> findUsername();
}
